home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_0799 / 792 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  1.7 KB

  1. From: moacs11!walra@relay.nl.net (Waldi Ravens)
  2. Subject: [MINTOS] compiler switch (was: Re: MiNT goes UNiX, ...)
  3. Date: Wed, 12 Jan 1994 13:05:50 +0100
  4.  
  5. In <9401120935.AA13713@issan.informatik.uni-dortmund.de>, Andreas Schwab writes:
  6.  
  7. > Btw., why not just using __MINT__ as a compiler switch, it is
  8. > predefined by the MiNTlibs and independent of the compiler.
  9.  
  10. The only information the __MINT__ switch provides, is that the target
  11. operating system is MiNT rather than pure Gemdos. What we need is a switch
  12. that tells a bit more about the target system in general: for example that
  13. reasonable filesystems (like minixfs) will be used (no need to mess around
  14. with filenames like bison.simple or .profile), and that the environment
  15. variables should follow the Unix conventions (PATH, MANPATH, etc.).
  16.  
  17. Allthough I'm not even sure which switches are currently popular ;-), let
  18. alone which ones have been used in the past, I'll try to summarize the
  19. general idea I had in mind:
  20.  
  21. atari or atarist : for code necessary to run the program under Gemdos, in
  22.                    a Gemdos-style system environment.
  23.  
  24. __MINT__ or MINT : for code necessary to run the program under MiNT, in a
  25.                    Gemdos-style system environment.
  26.  
  27. MINTOS :           running under MiNT, in a Unix-style system environment
  28.  
  29. Come to think of it, the MINTOS switch is only needed to undefine all the
  30. others :-).
  31.  
  32. > For compiler dependent code we can use atarist for GCC, ??? for PureC,
  33. > and so on.
  34.  
  35. There shouldn't be any compiler dependent code in an application, that's
  36. what the P1003.1 types (size_t, ssize_t, clock_t, ...) are all about. Any
  37. difference between compilers is already handled in compiler.h that comes
  38. with the MiNTlib.
  39.  
  40.  
  41. Regards,
  42.            Waldi  (walra%moacs11@nl.net)
  43.